<?php defined('_JEXEC') or die; ?>

<script type="text/javascript">
	$(document).ready(function(){
	
    check_confirm=function(){
      if(($('#username').attr("value") == "" )){
            $('#alert').html('Udfyld venligst Brugernavn');
            $('#backoverlay').show();
            $('#show_popup').show();
            $('#f_focus').html('username');
            return false;	
        }       
		
		if(($('#token').attr("value") == "" )){
            $('#alert').html('Udfyld venligst Kendetegn');
            $('#backoverlay').show();
            $('#show_popup').show();
            $('#f_focus').html('token');
            return false;	
        }  
     
        $('#confirm').click();
        
        return true;
	};    
     isEmail=function(string) {
		if (string.search(/^\w+((-\w+)|(\.\w+)|(\_\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
			return true;
		else return false;
    };
    close_popup=function(){		
		var fel=$('#f_focus').html();
        $('#backoverlay').hide();
		$('#show_popup').hide();
		$('#' + fel ).focus();
	};
    
    });

</script> 
<div id="main">
	<div id="content">
		<h1 class="page-title">NULSTILLE ADGANGSKODE</h1>
		<!-- Begin corporate structure  -->
		<div class="content-ctn grid-bg">
			<div id="accountContent">
				<form action="<?php echo JRoute::_( 'index.php?option=com_user&task=confirmreset' ); ?>" method="post" id="opretKontoForm" name="josForm">
					<fieldset>
						<!--Kunde infomation-->
						<div class="client-info block-decor fl-left">
							<div class="form-set-ctn">
								<h2><?php echo JText::_('Confirm your Account'); ?></h2>
								<?php echo JText::_('RESET_PASSWORD_CONFIRM_DESCRIPTION'); ?>
								<div class="input-set">									
									<label id="usernamemsg" for="username" title="<?php echo JText::_('RESET_PASSWORD_USERNAME_TIP_TITLE'); ?>::<?php echo JText::_('RESET_PASSWORD_USERNAME_TIP_TEXT'); ?>" >Brugernavn <span>*</span></label>
									<input type="text" id="username" name="username" size="36" value="" class="input-txt" maxlength="25" />
									<label id="pwmsg" for="password" title="<?php echo JText::_('RESET_PASSWORD_TOKEN_TIP_TITLE'); ?>::<?php echo JText::_('RESET_PASSWORD_TOKEN_TIP_TEXT'); ?>"><?php echo JText::_('Token'); ?>:</label>
									<input class="input-txt" id="token" name="token" type="text"/>
								</div>
							</div>
						</div>
						<div class="form-submit">
							<a href="javascript:void(0);" onclick="check_confirm();" class="send-btn fl-left"><?php echo JText::_('SEND'); ?></a>
							
						</div>
					</fieldset>
						<button type="submit" id="confirm" style="display:none" ><?php echo JText::_('Submit'); ?></button>
						<?php echo JHTML::_( 'form.token' ); ?>
					
					</form>
			</div>
		</div>                              
	</div>
  
</div>
